package com.web.pojo;
//结果封装类
public class ResultDTO {
    //标记，是否成功，true是成功，false是失败
    private boolean flag;
    //提示信息
    private String message;
    //查询结果的数据
    private Object data;

    //增删改的时候用
    public ResultDTO(boolean flag, String message) {
        this.flag = flag;
        this.message = message;
    }

    //查询用的
    public ResultDTO(boolean flag, String message, Object data) {
        this.flag = flag;
        this.message = message;
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
